package demo3;


class B {
    private int a;
    protected int b = 1;
    public int c;
    int d;
}

class C extends B {


    public void method() {

        //super.a=10;
        super.b = 20;
        super.c = 30;
        super.d = 40;
    }

    public void printf() {
        System.out.println(super.b);
    }
}

class D extends C{
    public D(){
        super.b=1999;
        System.out.println(super.b);
        System.out.println(b);
    }

}

public class Test {


}
